package com.tushu.book.service.impl;

import com.tushu.book.domain.books;
import com.tushu.book.mapper.BooksMapper;
import com.tushu.book.service.IBooksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IBooksServiceImpl implements IBooksService {
    @Autowired
    private BooksMapper booksMapper;

    public int addBook(books model) {
        return booksMapper.addBook(model);
    }

    public int updateBook(books model) {
        return booksMapper.updateBook(model);
    }

    public int deleteBook(int id) {
        return booksMapper.deleteBook(id);
    }

    public List<books> queryBook(books model) {
        return booksMapper.queryBook(model);
    }
}
